package gs.android.calcfeud;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;

public class Player extends Sprite {
	private GameModel model;
	
	private int field;
	
	public Player(float x, float y, float height, float width, Bitmap b, GameModel model) {
		super(x, y, height, width, b);
		this.model = model;
		
		field = 100;
	}

	@Override
	public void onDraw(Canvas c, int delta) {
		Field f = model.getFields()[field - 1];
		Rect dst = new Rect((int) f.getR().left, (int) f.getR().top, (int) f.getR().right, (int) f.getR().bottom);
		c.drawBitmap(getBitmap(), null, dst, null);
	}
}